<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="报工唯一值_id" prop="proId">
        <el-input
          v-model="queryParams.proId"
          placeholder="请输入报工唯一值_id"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="生产订单编号" prop="workorderCode">
        <el-input
          v-model="queryParams.workorderCode"
          placeholder="请输入生产订单编号"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="工序" prop="processName">
        <el-input
          v-model="queryParams.processName"
          placeholder="请输入工序"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="杀菌釜" prop="sterilizationKettle">
        <el-input
          v-model="queryParams.sterilizationKettle"
          placeholder="请输入杀菌釜"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="工序开始时间" prop="startTime">
        <el-date-picker clearable
          v-model="queryParams.startTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择工序开始时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="工序结束时间" prop="endTime">
        <el-date-picker clearable
          v-model="queryParams.endTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择工序结束时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="恒温灭菌时间(分钟)" prop="sterilizationTime">
        <el-input
          v-model="queryParams.sterilizationTime"
          placeholder="请输入恒温灭菌时间(分钟)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="报工时长(分钟)" prop="workingHours">
        <el-input
          v-model="queryParams.workingHours"
          placeholder="请输入报工时长(分钟)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="检验结果" prop="inspectionResults">
        <el-input
          v-model="queryParams.inspectionResults"
          placeholder="请输入检验结果"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="报工数量(PCS)" prop="quantityFeedback">
        <el-input
          v-model="queryParams.quantityFeedback"
          placeholder="请输入报工数量(PCS)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="不良品总数(PCS)" prop="quantityUnquanlified">
        <el-input
          v-model="queryParams.quantityUnquanlified"
          placeholder="请输入不良品总数(PCS)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="合格品总数(PCS)" prop="quantityQualified">
        <el-input
          v-model="queryParams.quantityQualified"
          placeholder="请输入合格品总数(PCS)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="报工人" prop="userName">
        <el-input
          v-model="queryParams.userName"
          placeholder="请输入报工人"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="报告人id" prop="userNameId">
        <el-input
          v-model="queryParams.userNameId"
          placeholder="请输入报告人id"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="提交时间" prop="submissionTime">
        <el-date-picker clearable
          v-model="queryParams.submissionTime"
          type="date"
          value-format="yyyy-MM-dd"
          placeholder="请选择提交时间">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="报工人所属部门" prop="userDept">
        <el-input
          v-model="queryParams.userDept"
          placeholder="请输入报工人所属部门"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="报工人所属部门id" prop="userDeptId">
        <el-input
          v-model="queryParams.userDeptId"
          placeholder="请输入报工人所属部门id"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="所属包装线" prop="packageLine">
        <el-input
          v-model="queryParams.packageLine"
          placeholder="请输入所属包装线"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="有效工时(单位：小时)" prop="goodManhours">
        <el-input
          v-model="queryParams.goodManhours"
          placeholder="请输入有效工时(单位：小时)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="异常工时(单位：小时)" prop="abnormalManhours">
        <el-input
          v-model="queryParams.abnormalManhours"
          placeholder="请输入异常工时(单位：小时)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="固定工人数" prop="fixWorkersNum">
        <el-input
          v-model="queryParams.fixWorkersNum"
          placeholder="请输入固定工人数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="男临时工人数" prop="maleTempWarkers">
        <el-input
          v-model="queryParams.maleTempWarkers"
          placeholder="请输入男临时工人数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="女临时工人数" prop="femaleTempWarkers">
        <el-input
          v-model="queryParams.femaleTempWarkers"
          placeholder="请输入女临时工人数"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="包装平均人效(PCS/小时/人)" prop="averageHumanEffect">
        <el-input
          v-model="queryParams.averageHumanEffect"
          placeholder="请输入包装平均人效(PCS/小时/人)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="包装时均产量(PCS/小时)" prop="averageTimeOutput">
        <el-input
          v-model="queryParams.averageTimeOutput"
          placeholder="请输入包装时均产量(PCS/小时)"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="状态" prop="status">
        <el-select v-model="queryParams.status" placeholder="请选择状态" clearable>
          <el-option label="请选择字典生成" value="" />
        </el-select>
      </el-form-item>
      <el-form-item label="预留字段1" prop="attr1">
        <el-input
          v-model="queryParams.attr1"
          placeholder="请输入预留字段1"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="预留字段2" prop="attr2">
        <el-input
          v-model="queryParams.attr2"
          placeholder="请输入预留字段2"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="预留字段3" prop="attr3">
        <el-input
          v-model="queryParams.attr3"
          placeholder="请输入预留字段3"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item label="预留字段4" prop="attr4">
        <el-input
          v-model="queryParams.attr4"
          placeholder="请输入预留字段4"
          clearable
          @keyup.enter.native="handleQuery"
        />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button
          type="primary"
          plain
          icon="el-icon-plus"
          size="mini"
          @click="handleAdd"
          v-hasPermi="['mes:feedback:dingding:add']"
        >新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="success"
          plain
          icon="el-icon-edit"
          size="mini"
          :disabled="single"
          @click="handleUpdate"
          v-hasPermi="['mes:feedback:dingding:edit']"
        >修改</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="danger"
          plain
          icon="el-icon-delete"
          size="mini"
          :disabled="multiple"
          @click="handleDelete"
          v-hasPermi="['mes:feedback:dingding:remove']"
        >删除</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button
          type="warning"
          plain
          icon="el-icon-download"
          size="mini"
          @click="handleExport"
          v-hasPermi="['mes:feedback:dingding:export']"
        >导出</el-button>
      </el-col>
      <el-col :span="1.5">
            <el-button
              type="success"
              plain
              icon="el-icon-refresh"
              size="mini"
              @click="handleSync"
             v-hasPermi="['mes:feedback:dingding:sync']"
            >数据同步</el-button>
            </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="dingdingList" @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="记录ID" align="center" prop="recordId" />
      <el-table-column label="报工唯一值_id" align="center" prop="proId" />
      <el-table-column label="生产订单编号" align="center" prop="workorderCode" />
      <el-table-column label="工序" align="center" prop="processName" />
      <el-table-column label="杀菌釜" align="center" prop="sterilizationKettle" />
      <el-table-column label="工序开始时间" align="center" prop="startTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.startTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="工序结束时间" align="center" prop="endTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.endTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="恒温灭菌时间(分钟)" align="center" prop="sterilizationTime" />
      <el-table-column label="报工时长(分钟)" align="center" prop="workingHours" />
      <el-table-column label="检验结果" align="center" prop="inspectionResults" />
      <el-table-column label="报工数量(PCS)" align="center" prop="quantityFeedback" />
      <el-table-column label="不良品总数(PCS)" align="center" prop="quantityUnquanlified" />
      <el-table-column label="合格品总数(PCS)" align="center" prop="quantityQualified" />
      <el-table-column label="图片上传" align="center" prop="pictureUpload" />
      <el-table-column label="报工人" align="center" prop="userName" />
      <el-table-column label="报告人id" align="center" prop="userNameId" />
      <el-table-column label="提交时间" align="center" prop="submissionTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.submissionTime, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="报工人所属部门" align="center" prop="userDept" />
      <el-table-column label="报工人所属部门id" align="center" prop="userDeptId" />
      <el-table-column label="备注" align="center" prop="remark" />
      <el-table-column label="所属包装线" align="center" prop="packageLine" />
      <el-table-column label="有效工时(单位：小时)" align="center" prop="goodManhours" />
      <el-table-column label="异常工时(单位：小时)" align="center" prop="abnormalManhours" />
      <el-table-column label="固定工人数" align="center" prop="fixWorkersNum" />
      <el-table-column label="男临时工人数" align="center" prop="maleTempWarkers" />
      <el-table-column label="女临时工人数" align="center" prop="femaleTempWarkers" />
      <el-table-column label="包装平均人效(PCS/小时/人)" align="center" prop="averageHumanEffect" />
      <el-table-column label="包装时均产量(PCS/小时)" align="center" prop="averageTimeOutput" />
      <el-table-column label="状态" align="center" prop="status" />
      <el-table-column label="预留字段1" align="center" prop="attr1" />
      <el-table-column label="预留字段2" align="center" prop="attr2" />
      <el-table-column label="预留字段3" align="center" prop="attr3" />
      <el-table-column label="预留字段4" align="center" prop="attr4" />
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template slot-scope="scope">
          <el-button
            size="mini"
            type="text"
            icon="el-icon-edit"
            @click="handleUpdate(scope.row)"
            v-hasPermi="['mes:feedback:dingding:edit']"
          >修改</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-delete"
            @click="handleDelete(scope.row)"
            v-hasPermi="['mes:feedback:dingding:remove']"
          >删除</el-button>
        </template>
      </el-table-column>
    </el-table>

    <pagination
      v-show="total>0"
      :total="total"
      :page.sync="queryParams.pageNum"
      :limit.sync="queryParams.pageSize"
      @pagination="getList"
    />

    <!-- 添加或修改【请填写功能名称】对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
        <el-form-item label="报工唯一值_id" prop="proId">
          <el-input v-model="form.proId" placeholder="请输入报工唯一值_id" />
        </el-form-item>
        <el-form-item label="生产订单编号" prop="workorderCode">
          <el-input v-model="form.workorderCode" placeholder="请输入生产订单编号" />
        </el-form-item>
        <el-form-item label="工序" prop="processName">
          <el-input v-model="form.processName" placeholder="请输入工序" />
        </el-form-item>
        <el-form-item label="杀菌釜" prop="sterilizationKettle">
          <el-input v-model="form.sterilizationKettle" placeholder="请输入杀菌釜" />
        </el-form-item>
        <el-form-item label="工序开始时间" prop="startTime">
          <el-date-picker clearable
            v-model="form.startTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择工序开始时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="工序结束时间" prop="endTime">
          <el-date-picker clearable
            v-model="form.endTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择工序结束时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="恒温灭菌时间(分钟)" prop="sterilizationTime">
          <el-input v-model="form.sterilizationTime" placeholder="请输入恒温灭菌时间(分钟)" />
        </el-form-item>
        <el-form-item label="报工时长(分钟)" prop="workingHours">
          <el-input v-model="form.workingHours" placeholder="请输入报工时长(分钟)" />
        </el-form-item>
        <el-form-item label="检验结果" prop="inspectionResults">
          <el-input v-model="form.inspectionResults" placeholder="请输入检验结果" />
        </el-form-item>
        <el-form-item label="报工数量(PCS)" prop="quantityFeedback">
          <el-input v-model="form.quantityFeedback" placeholder="请输入报工数量(PCS)" />
        </el-form-item>
        <el-form-item label="不良品总数(PCS)" prop="quantityUnquanlified">
          <el-input v-model="form.quantityUnquanlified" placeholder="请输入不良品总数(PCS)" />
        </el-form-item>
        <el-form-item label="合格品总数(PCS)" prop="quantityQualified">
          <el-input v-model="form.quantityQualified" placeholder="请输入合格品总数(PCS)" />
        </el-form-item>
        <el-form-item label="图片上传" prop="pictureUpload">
          <el-input v-model="form.pictureUpload" type="textarea" placeholder="请输入内容" />
        </el-form-item>
        <el-form-item label="报工人" prop="userName">
          <el-input v-model="form.userName" placeholder="请输入报工人" />
        </el-form-item>
        <el-form-item label="报告人id" prop="userNameId">
          <el-input v-model="form.userNameId" placeholder="请输入报告人id" />
        </el-form-item>
        <el-form-item label="提交时间" prop="submissionTime">
          <el-date-picker clearable
            v-model="form.submissionTime"
            type="date"
            value-format="yyyy-MM-dd"
            placeholder="请选择提交时间">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="报工人所属部门" prop="userDept">
          <el-input v-model="form.userDept" placeholder="请输入报工人所属部门" />
        </el-form-item>
        <el-form-item label="报工人所属部门id" prop="userDeptId">
          <el-input v-model="form.userDeptId" placeholder="请输入报工人所属部门id" />
        </el-form-item>
        <el-form-item label="备注" prop="remark">
          <el-input v-model="form.remark" placeholder="请输入备注" />
        </el-form-item>
        <el-form-item label="所属包装线" prop="packageLine">
          <el-input v-model="form.packageLine" placeholder="请输入所属包装线" />
        </el-form-item>
        <el-form-item label="有效工时(单位：小时)" prop="goodManhours">
          <el-input v-model="form.goodManhours" placeholder="请输入有效工时(单位：小时)" />
        </el-form-item>
        <el-form-item label="异常工时(单位：小时)" prop="abnormalManhours">
          <el-input v-model="form.abnormalManhours" placeholder="请输入异常工时(单位：小时)" />
        </el-form-item>
        <el-form-item label="固定工人数" prop="fixWorkersNum">
          <el-input v-model="form.fixWorkersNum" placeholder="请输入固定工人数" />
        </el-form-item>
        <el-form-item label="男临时工人数" prop="maleTempWarkers">
          <el-input v-model="form.maleTempWarkers" placeholder="请输入男临时工人数" />
        </el-form-item>
        <el-form-item label="女临时工人数" prop="femaleTempWarkers">
          <el-input v-model="form.femaleTempWarkers" placeholder="请输入女临时工人数" />
        </el-form-item>
        <el-form-item label="包装平均人效(PCS/小时/人)" prop="averageHumanEffect">
          <el-input v-model="form.averageHumanEffect" placeholder="请输入包装平均人效(PCS/小时/人)" />
        </el-form-item>
        <el-form-item label="包装时均产量(PCS/小时)" prop="averageTimeOutput">
          <el-input v-model="form.averageTimeOutput" placeholder="请输入包装时均产量(PCS/小时)" />
        </el-form-item>
        <el-form-item label="状态">
          <el-radio-group v-model="form.status">
            <el-radio label="1">请选择字典生成</el-radio>
          </el-radio-group>
        </el-form-item>
        <el-form-item label="删除标志" prop="delFlag">
          <el-input v-model="form.delFlag" placeholder="请输入删除标志" />
        </el-form-item>
        <el-form-item label="预留字段1" prop="attr1">
          <el-input v-model="form.attr1" placeholder="请输入预留字段1" />
        </el-form-item>
        <el-form-item label="预留字段2" prop="attr2">
          <el-input v-model="form.attr2" placeholder="请输入预留字段2" />
        </el-form-item>
        <el-form-item label="预留字段3" prop="attr3">
          <el-input v-model="form.attr3" placeholder="请输入预留字段3" />
        </el-form-item>
        <el-form-item label="预留字段4" prop="attr4">
          <el-input v-model="form.attr4" placeholder="请输入预留字段4" />
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { listDingding, getDingding, delDingding, addDingding, updateDingding ,syncFeedback} from "@/api/mes/pro/feedbackdingding";

export default {
  name: "Dingding",
  data() {
    return {
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // 【请填写功能名称】表格数据
      dingdingList: [],
      // 弹出层标题
      title: "",
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        proId: null,        workorderCode: null,        processName: null,        sterilizationKettle: null,        startTime: null,        endTime: null,        sterilizationTime: null,        workingHours: null,        inspectionResults: null,        quantityFeedback: null,        quantityUnquanlified: null,        quantityQualified: null,        pictureUpload: null,        userName: null,        userNameId: null,        submissionTime: null,        userDept: null,        userDeptId: null,        packageLine: null,        goodManhours: null,        abnormalManhours: null,        fixWorkersNum: null,        maleTempWarkers: null,        femaleTempWarkers: null,        averageHumanEffect: null,        averageTimeOutput: null,        status: null,        attr1: null,        attr2: null,        attr3: null,        attr4: null,      },
      // 表单参数
      form: {},
      // 表单校验
      rules: {
        proId: [
          { required: true, message: "报工唯一值_id不能为空", trigger: "blur" }
        ],      }
    };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询【请填写功能名称】列表 */
    getList() {
      this.loading = true;
      listDingding(this.queryParams).then(response => {
        this.dingdingList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        recordId: null,        proId: null,        workorderCode: null,        processName: null,        sterilizationKettle: null,        startTime: null,        endTime: null,        sterilizationTime: null,        workingHours: null,        inspectionResults: null,        quantityFeedback: null,        quantityUnquanlified: null,        quantityQualified: null,        pictureUpload: null,        userName: null,        userNameId: null,        submissionTime: null,        userDept: null,        userDeptId: null,        remark: null,        packageLine: null,        goodManhours: null,        abnormalManhours: null,        fixWorkersNum: null,        maleTempWarkers: null,        femaleTempWarkers: null,        averageHumanEffect: null,        averageTimeOutput: null,        status: "0",        delFlag: null,        attr1: null,        attr2: null,        attr3: null,        attr4: null,        createBy: null,        createTime: null,        updateBy: null,        updateTime: null      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.recordId)
      this.single = selection.length!==1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.title = "添加【请填写功能名称】";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();
      const recordId = row.recordId || this.ids
      getDingding(recordId).then(response => {
        this.form = response.data;
        this.open = true;
        this.title = "修改【请填写功能名称】";
      });
    },
    /** 提交按钮 */
    submitForm() {
      this.$refs["form"].validate(valid => {
        if (valid) {
          if (this.form.recordId != null) {
            updateDingding(this.form).then(response => {
              this.$modal.msgSuccess("修改成功");
              this.open = false;
              this.getList();
            });
          } else {
            addDingding(this.form).then(response => {
              this.$modal.msgSuccess("新增成功");
              this.open = false;
              this.getList();
            });
          }
        }
      });
    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const recordIds = row.recordId || this.ids;
      this.$modal.confirm('是否确认删除【请填写功能名称】编号为"' + recordIds + '"的数据项？').then(function() {
        return delDingding(recordIds);
      }).then(() => {
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }).catch(() => {});
    },
    /** 同步数据按钮操作 */
    handleSync() {
            if(this.loading){
              this.$modal.message("正常进行中，请不要重复点击...")
            }
            this.loading = true;
            this.$modal.confirm('是否确认同步数据？').then(function() {
              return syncFeedback();
            }).then(() => {
              this.getList();
              this.$modal.msgSuccess("同步成功");
            }).catch(() => {});
          },
    /** 导出按钮操作 */
    handleExport() {
      this.download('/mes/pro/feedback/dingding/export', {
        ...this.queryParams
      }, `dingding_${new Date().getTime()}.xlsx`)
    }
  }
};
</script>
